
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"
	contentType="text/html; charset=utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>main page</title>
<style type="text/css">
body {
	background-color: #0CC;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
</style>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-2.0.3.js"></script>
<script type="text/javascript" src="js/down.js"></script>
</head>
<body>

	<%@include file="head.jsp"%>
	<div id="main">
		<div id="content"></div>
		<div style="float: left; margin-left: 15px; width: 78%;">
			<div id="currentFolder">
				当前文件夹:<span id="folder"><s:property value="currentName" /></span>
			</div>
			<hr />
			<div id="list">


				<table width="900" border="1" cellspacing="0" cellpadding="0">
					<%
						int foldernum = 0;//表示文件夹列表序号，实际id序号从1开始
						int filenum = 0;//表示文件列表序号，序号从1开始
					%>
					<thead>
						<tr>
							<th id="filename" scope="col">名称</th>
							<th id="lastmoditied" scope="col">修改日期</th>
							<th id="filetype" scope="col">文件类型</th>
							<th id="filesize" scope="col">文件大小</th>
							<th id="operate" scope="col">操作</th>
						</tr>
					</thead>
					<tbody>

						<s:iterator value="fileList">
							<tr id="file<%=++filenum%>">
								<td id="name"><s:property value="name" /></td>
								<td id="lastmoditied"><s:property value="lastModitied" />
								</td>
								<td id="filetype"><s:property value="fileType" /></td>
								<td id="filesize"><s:property value="fileSize" /></td>
								<td id="operate">
									<button
										onclick="del('<s:property value="name"/>','file'+'<%=filenum%>')">删除</button>
									<button onclick="">编辑</button>
								</td>
							</tr>
						</s:iterator>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
</html>